<?php defined('InNcPHP') or exit('Access Invalid!');?>

<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <h3><?php echo $lang['service_index'];?></h3>
            <?php echo $output['top_link'];?>
        </div>
    </div>
    <div class="fixed-empty"></div>
    <form method="post" id='form_service'>
        <input type="hidden" name="form_submit" value="ok" />
        <table class="table tb-type2">
            <thead>
            <tr class="space">
                <th colspan="15" class="nobg"><?php echo $lang['nc_list'];?></th>
            </tr>
            <tr class="thead">
                <th><input type="checkbox" class="checkall" id="checkallBottom" name="chkVal"></th>
                <!-- <th class="align-center"><?php echo $lang['nc_common_sort'];?></th> -->
                <th class="align-center"><?php echo $lang['service_index_title'];?></th>
                <th class="align-center"><?php echo $lang['nc_common_addtime'];?></th>
                <th class="align-center"><?php echo $lang['nc_handle'];?></th>
            </tr>
            </thead>
            <tbody>
            <?php if(!empty($output['list']) && is_array($output['list'])){ ?>
                <?php foreach($output['list'] as $k => $v){ ?>
                    <tr class="hover">
                        <td class="w24">
                            <input name="del_id[]" type="checkbox" value="<?php echo $v['service_id']; ?>" class="checkitem" onclick="javascript:chkRow(this);">
                        </td>
                        <!-- <td class="align-center" ><?php echo $v['service_sort'];?></td>  -->
                        <td class="align-center" ><?php echo $v['service_title'];?></td>
                        <td class="align-center"><?php echo $v['addtime'] ? date('Y-m-d H:i:s',$v['addtime']) : ''; ?></td>
                        <td class="w150 align-center">
                            <a href="index.php?act=service&op=service_edit&service_id=<?php echo $v['service_id']; ?>"><?php echo $lang['nc_edit'];?></a>
                            <!-- |<a href="javascript:void(0)" onclick="if(confirm('<?php echo $lang['nc_ensure_del'];?>')){location.href='index.php?act=service&op=service_del&service_id=<?php echo $v['service_id']; ?>'}"><?php echo $lang['nc_delete'];?></a> -->

                        </td>
                    </tr>
                <?php } ?>
            <?php }else { ?>
                <tr class="no_data">
                    <td colspan="10"><?php echo $lang['nc_no_record'];?></td>
                </tr>
            <?php } ?>
            </tbody>
            <tfoot>
            <?php if(!empty($output['list']) && is_array($output['list'])){ ?>
                <tr class="tfoot">
                    <td colspan="16">
                        <div class="pagination"> <?php echo $output['page'];?> </div></td>
                </tr>
            <?php } ?>
            </tfoot>
        </table>
    </form>
</div>
